package com.googlecode.cswish.exception;

/**
 * @author Jerry date 2007-4-7
 */
public class ApplicationException extends RuntimeException {

	private static final long serialVersionUID = 2280980424630717438L;

	protected String messageKey;
	
    protected Object[] arguments;
    
    public ApplicationException(String messageKey, Object ... arguments) {
    	this.messageKey = messageKey;
        this.arguments = arguments;
    }
    
    public void setArguments(Object[] arguments) {
		this.arguments = arguments;
	}

	public Object[] getArguments() {
        return this.arguments;
    }

    public String getMessageKey() {
        return messageKey;
    }
}